function sayHi(name) {
	return "Hi " + name;
}

function add(a, b) {
	return a + b;
}

var UserManagement = {
	comparison : function(user1, user2) {
		if (user1.age > user2.age) {
			return user1.name + ' is older than ' + user2.name;
		}
		if (user1.age == user2.age) {
			return user1.name + ' is same age as ' + user2.name;
		}
		if (user1.age < user2.age) {
			return user1.name + ' is younger than ' + user2.name;
		}
	},
	userName : function(user) {
		return user.name + user.surname;
	},
	userInfo : function(user) {
		return user.name + '' + user.surname + ',aged ' + user.age;

	},
	oldEnoughtoMerry : function(user) {
		if (user.age > 18 && user < 40) {
			return true;

		} else {
			return false;
		}
	}
};

// alert(UserManagement.comparison(u1, u2))
